package com.woniuxy.lab.woniu_lab_boss.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("用户信息")
public class UserDto {
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer id;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号", example = "13340239144")
    private String phone;

    /**
     * 昵称(长度在2至10字)
     */
    @ApiModelProperty(value = "用户昵称", example = "lucas")
    private String nickname;

    /**
     * 头像地址
     */
    @ApiModelProperty(value = "头像地址", example = "/")
    private String pic;

    /**
     * ctf积分
     */
    @ApiModelProperty(value = "CTF实验积分", example = "0")
    private Integer ctfScore;

    /**
     * 靶场积分
     */
    @ApiModelProperty(value = "靶场实验积分", example = "0")
    private Integer rangeScore;

    /**
     * 用户状态(ENABLE/DISABLE/DEL)
     */
    @ApiModelProperty(value = "用户状态", example = "ENABLE")
    private String status;

    /**
     * 会员(NORMAL/VIP/SVIP)
     */
    @ApiModelProperty(value = "VIP状态", example = "VIP")
    private String vip;

    /**
     * VIP过期时间(仅当VIP时该字段有意义)
     */
    @ApiModelProperty(value = "VIP过期时期")
    private LocalDateTime vipTime;

    /**
     * 账户余额
     */
    @ApiModelProperty(value = "账户余额", example = "10.00")
    private BigDecimal balance;

    /**
     * 夺旗赛完成数量
     */
    @ApiModelProperty(value = "CTF完成数量", example = "10")
    private Integer ctfCount;

    /**
     * 实验完成数量
     */
    @ApiModelProperty(value = "靶场实验完成数量", example = "10")
    private Integer experCount;

    /**
     * 异常次数
     */
    @ApiModelProperty(value = "异常操作次数", example = "4")
    private Integer excepCount;

    /**
     * 消费总金额
     */
    @ApiModelProperty(value = "消费总金额", example = "10000.00")
    private BigDecimal totalMoney;


}
